package pojo;

import lombok.Getter;
import lombok.Setter;

@Getter
public enum ResultEnum {
    SUCCESS(1000,"SUCCESS"),
    FAIL(1050,"FAIL"),
    ERROR(5000,"服务器忙，稍后重试"),
    NOLOGIN(2001,"尚未登录"),
    NOAUTH(2002,"没有权限");

    private int code;
    private String msg;

    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
